//////方剂-包含药///////
////////////////////////////////////////////////////////////////////////////
   var storeContainPre = new Ext.data.JsonStore({
        root: 'articles',
        fields: [
            'id', 'text'
        ],
        // load using script tags for cross domain, if the data in on the same domain as
        // this page, an HttpProxy would be better
        proxy: new Ext.data.HttpProxy({
            url: basePath+'/../prescription',
            doClass:'containPre'
        }),
        baseParams: {doClass:'containPre'}
    });
    storeContainPre.setDefaultSort('id', 'desc');


    // create the Grid
    var gridContainPre = new Ext.grid.GridPanel({
        store: storeContainPre,
        shadow:true,
        autoScroll: true,
        border:false,
          tbar: [
            '&nbsp;&nbsp; ', ' ',
            new Ext.app.SearchField({
                store: storeContainPre,
                paramName:'containName',
                value:''
            })
        ],
        columns: [
        	new Ext.grid.CheckboxSelectionModel(),
            {id:'AA',header: "选择", width: 90,sortable: true, dataIndex: 'id', hidden:false},
            {header: "字母/频次", width: 600, sortable: true, dataIndex: 'text'}
        ],
         iconCls:'icon-grid',
         bodyStyle:'width:100%;',
		 autoWidth:true,
         height:500,
         sm: new Ext.grid.CheckboxSelectionModel({singleSelect: false})
    });
   
    gridContainPre.on('rowclick', function(g, rowIdx, e) {
   			selectPreRecord(g.getSelectionModel().getSelections());
	});
	
    gridContainPre.render('grid_gridContainPre');
//    storeContainPre.load({params:{doClass:'containPre'}});